﻿package kabam.rotmg.account.kabam.view {
import com.company.assembleegameclient.account.ui.Frame;

import flash.display.Sprite;
import flash.events.MouseEvent;
import flash.filters.DropShadowFilter;

import kabam.rotmg.text.model.TextKey;
import kabam.rotmg.text.view.TextFieldDisplayConcrete;
import kabam.rotmg.text.view.stringBuilder.LineBuilder;
import kabam.rotmg.text.view.stringBuilder.StaticStringBuilder;

import org.osflash.signals.Signal;

public class KabamAccountDetailDialog extends Sprite {

    public var done:Signal;
    private var loginText_:TextFieldDisplayConcrete;
    private var usernameText_:TextFieldDisplayConcrete;

    public function KabamAccountDetailDialog() {
        this.done = new Signal();
    }

    public function setInfo(_arg1:String):void {
        var _local2:Frame;
        _local2 = new Frame(TextKey.KABAMACCOUNTDETAILDIALOG_TITLE, "", TextKey.KABAMACCOUNTDETAILDIALOG_RIGHTBUTTON);
        addChild(_local2);
        this.loginText_ = new TextFieldDisplayConcrete().setSize(18).setColor(0xB3B3B3);
        this.loginText_.setBold(true);
        this.loginText_.setStringBuilder(new LineBuilder().setParams(TextKey.KABAMACCOUNTDETAILDIALOG_LOGINTEXT));
        this.loginText_.filters = [new DropShadowFilter(0, 0, 0)];
        this.loginText_.y = (_local2.h_ - 60);
        this.loginText_.x = 17;
        _local2.addChild(this.loginText_);
        this.usernameText_ = new TextFieldDisplayConcrete().setSize(16).setColor(0xB3B3B3).setTextWidth(238).setTextHeight(30);
        this.usernameText_.setStringBuilder(new StaticStringBuilder(_arg1));
        this.usernameText_.y = (_local2.h_ - 30);
        this.usernameText_.x = 17;
        _local2.addChild(this.usernameText_);
        _local2.h_ = (_local2.h_ + 88);
        _local2.w_ = (_local2.w_ + 60);
        _local2.rightButton_.addEventListener(MouseEvent.CLICK, this.onContinue);
    }

    private function onContinue(_arg1:MouseEvent):void {
        this.done.dispatch();
    }


}
}
